package c.e.b.h.e.m.x;

import android.util.JsonReader;
import c.e.b.h.e.m.p;
import c.e.b.h.e.m.w;
import c.e.b.h.e.m.x.h.a;
import com.huawei.hms.jos.games.ranking.RankingConst;
import java.util.Objects;

/* compiled from: CrashlyticsReportJsonTransform */
public final /* synthetic */ class d implements a {
    public static final d a = new d();

    public Object a(JsonReader jsonReader) {
        c.e.b.i.a aVar = h.a;
        jsonReader.beginObject();
        String str = null;
        Integer num = str;
        w wVar = num;
        while (jsonReader.hasNext()) {
            String nextName = jsonReader.nextName();
            nextName.hashCode();
            nextName.hashCode();
            Object obj = -1;
            switch (nextName.hashCode()) {
                case -1266514778:
                    if (nextName.equals("frames")) {
                        obj = null;
                        break;
                    }
                    break;
                case 3373707:
                    if (nextName.equals(RankingConst.RANKING_JGW_NAME)) {
                        obj = 1;
                        break;
                    }
                    break;
                case 2125650548:
                    if (nextName.equals("importance")) {
                        obj = 2;
                        break;
                    }
                    break;
            }
            switch (obj) {
                case null:
                    wVar = h.a(jsonReader, g.a);
                    break;
                case 1:
                    str = jsonReader.nextString();
                    Objects.requireNonNull(str, "Null name");
                    break;
                case 2:
                    num = Integer.valueOf(jsonReader.nextInt());
                    break;
                default:
                    jsonReader.skipValue();
                    break;
            }
        }
        jsonReader.endObject();
        String str2 = str == null ? " name" : "";
        if (num == null) {
            str2 = c.b.a.a.a.D(str2, " importance");
        }
        if (wVar == null) {
            str2 = c.b.a.a.a.D(str2, " frames");
        }
        if (str2.isEmpty()) {
            return new p(str, num.intValue(), wVar, null);
        }
        throw new IllegalStateException(c.b.a.a.a.D("Missing required properties:", str2));
    }
}
